*{
    margin: 0;
    padding: 0;
    list-style-type: none;
}
body{
    background-color: gainsboro;
}
.top{
    /* border: 1px red solid; */
    line-height: 0.8rem;
    font-size: 0.5rem;
    display: flex;
    background-color: white;
}
.top div:nth-of-type(1){
    /* border: 1px blue solid; */
    margin: 0 1rem 0 0.4rem;
}
.top div:nth-of-type(2){
    /* border: 1px blue solid; */
    margin: 0 0 0 1rem;
    color: gray;
}
.top div:nth-of-type(3){
    /* border: 1px blue solid; */
    margin-left: 0.2rem;
    color: lightcoral;
    font-size: 0.4rem;
}
#product {
    margin-bottom: 1.2rem;
    /* width: 8.3rem; */
}
#product .item{
    display: flex;
    /* border: 1px orange solid; */
    /* width: 8.3rem; */
}  

#product .dp{
    /* border:1px green solid; */
    margin-top: 0.2rem;
    background-color: white;
    flex: 9;
    position: relative;
}
#product .dp .dpmc{
    font-size: 0.4rem;
}
/* #product .dp .spdel{
    position:relative;
    border: 1px blue solid;
} */
#product .dp .sp{
    /* border: 1px red solid; */
    display: flex;
    font-size: 0.3rem;
    width: 7.4rem;
}
#product .dp .sp>div:nth-of-type(1){
    /* border:1px blue solid; */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
#product .dp .sp>div:nth-of-type(1) .tb{
    /* border: 1px orange solid; */
    height: 0.7rem;
    width: 0.7rem;
    background-image: url("../img/shop-icon.png");
    background-repeat: no-repeat;
    /*比例1*/
    background-size: 2rem 4rem;
    background-position: 0rem 0rem;
    /* background-position: -1rem 0rem; */
}
#product .dp .sp>div:nth-of-type(2){
    /* border:1px blue solid; */
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
#product .dp .sp>div:nth-of-type(2) .pic{
    /* border: 1px orange solid; */
    height: 1.6rem;
    width: 1.6rem;
}
#product .dp .sp>div:nth-of-type(2) .pic img{
    height: 100%;
    width: 100%;
}
#product .dp .sp>div:nth-of-type(3){
    /* border:1px blue solid; */
    flex: 5;
    line-height: 0.65rem;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(1){
    /* border:1px silver solid; */
    padding-left: 0.2rem;
}

#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2){
    display: flex;
    /* border: 1px red solid; */
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(1){
    flex: 2;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(2){
    flex: 3;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(1)>p:nth-of-type(1){
    flex: 1;
    color: orange;
    padding-left: 0.1rem;
    /* border: 1px red solid; */
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(1)>p:nth-of-type(2){
    flex: 1;
    color: red;
    padding-left: 0.1rem;
    display: none;
    /* border: 1px red solid; */
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(2){
    flex: 1;
    /* border: 1px red solid; */
    display: flex;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(2) p:nth-of-type(1){
    border:1px gainsboro solid;
    border-radius: 0.25rem 0 0 0.25rem;
    height: 0.6rem;
    width: 0.6rem;
    background-image: url("../img/shop-icon.png");
    /*0.8比例*/
    background-size: 1.6rem 3.2rem;
    background-position: 0.1rem -1.5rem;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(2) p:nth-of-type(2){
    border:1px gainsboro solid;
    border-radius: 0 0.25rem 0.25rem 0;
    height: 0.6rem;
    width: 0.6rem;
    background-image: url("../img/shop-icon.png");
    /*0.8比例*/
    background-size: 1.6rem 3.2rem;
    background-position: 0.9rem -1.5rem;
}
#product .dp .sp>div:nth-of-type(3)>div:nth-of-type(2)>div:nth-of-type(2) input{
    border-top: 1px gainsboro solid;
    border-bottom: 1px gainsboro solid;
    border-left: 0;
    border-right: 0;
    height: 0.6rem;
    width: 0.6rem;
    text-align: center;
}
#product .dp .del{
    flex: 1;
    border: 1px black solid;
    height: 1.6rem;
    line-height: 1.6rem;
    width: 0.7rem;
    background-color: red;
    color: white;
    text-align: center;
    font-size: 0.3rem;
    position:absolute;
    /* top:-0.03rem; */
    top: 0.5rem;
    right: -0.75rem;
    display: none;
}

#product .kong{
    /* border: 1px black solid; */
    height: 0.5rem;
    width: 0.7rem;
    margin-top: 0.2rem;
    background-color: white;
    display: none;
}


.buttom{
    /* border: 1px red solid; */
    display: flex;
    font-size: 0.4rem;
    line-height: 1rem;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background-color: white;
}
.buttom>div{
    /* border: 1px blueviolet solid; */
}
.buttom>div:nth-of-type(1){
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.buttom>div:nth-of-type(1) .chooseAll{
    /* border: 1px black solid; */
    height: 0.5rem;
    width: 0.5rem;
    background-image: url("../img/shop-icon.png");
    /*0.7比例*/
    background-size: 1.4rem 2.8rem;
    background-position: 0rem 0rem;
    /* background-position: -0.7rem 0rem; */
}
.buttom>div:nth-of-type(2){
    flex: 1;
}
.buttom>div:nth-of-type(3){
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.buttom>div:nth-of-type(3) div{
    border: 1px red solid;
    border-radius: 0.1rem;
    height: 0.8rem;
    width: 2.2rem;
    text-align: center;
    line-height: 0.8rem;
    background-color: red;
    color: white;
}